#帮我写一个人类,人有性别、年龄、姓名、身份证号 行为睡觉、吃饭、拉、洗澡、运动
#
class Person:
    def __init__(self,sex,age,name,id_card):
        self.sex=sex
        self.age=age
        self.name=name
        self.id_card=id_card
    def sleep(self):
        print("睡觉")
    def eat(self):
        print(f"{self.name}正在吃饭")
    def pull(self):
        print("拉")
    def shower(self):
        print("洗澡")
    def exercise(self):
        print("运动")

#创建一个对象,并调用方法
p1=Person("男",18,"张三","11010119990101001")
p1.sleep()
p1.eat()
p1.pull()
p1.shower()
p1.exercise()

